﻿<Fluent:RibbonWindow x:Class="SGT_OClient.Views.IngresoRemitoView"
       xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:Fluent="clr-namespace:Fluent;assembly=Fluent"
        xmlns:s="http://www.stemasoft.com/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        mc:Ignorable="d"
        DataContext="{Binding Main, Source={StaticResource Locator}}" ResizeMode="CanResizeWithGrip" Width="745" Height="553" xmlns:my="clr-namespace:Loya.Dameer;assembly=Loya.Dameer">

    <Fluent:RibbonWindow.Resources>
        <ResourceDictionary>
            <BooleanToVisibilityConverter x:Key="boolToVis" />

            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/ReuxablesLegacy;component/mercury.xaml" />
            </ResourceDictionary.MergedDictionaries>


        </ResourceDictionary>


    </Fluent:RibbonWindow.Resources>

    <DockPanel LastChildFill="True" Height="541" VerticalAlignment="Top" HorizontalAlignment="Left" Width="729">
        <Fluent:Ribbon DockPanel.Dock="Top" Title="Nuevo ingreso a deposito" >
            <!--Quick Access Toolbar Items-->
            <Fluent:Ribbon.QuickAccessItems>
                <Fluent:QuickAccessMenuItem Target="{Binding ElementName=buttonGreen}"/>
            </Fluent:Ribbon.QuickAccessItems>
            <Fluent:RibbonTabItem Header="Editar" ReduceOrder="(P),(P),(P),(P),(P)" x:Name="EditarTab" >
                <Fluent:RibbonGroupBox Header="">
                    <Fluent:Button LargeIcon="/SGT_OClient;component/Img/save32x32.png"  Header="Guardar" Command="{Binding Path=GuardarRemito}" />

                    <Fluent:Button Header="Imprimir"  LargeIcon="/SGT_OClient;component/Img/print-icon.png" Command="{Binding Path=ImprimirRemito}" />
                </Fluent:RibbonGroupBox>
               
            </Fluent:RibbonTabItem>

        </Fluent:Ribbon>
        <Grid x:Name="interno"  Background="WhiteSmoke" Width="729" d:LayoutOverrides="Width" Height="405" VerticalAlignment="Top">
            <Grid.RowDefinitions>
                <RowDefinition Height="0.106*" />
                <RowDefinition Height="0.095*" />
                <RowDefinition Height="0.095*" />
                <RowDefinition Height="0.106*" />
                <RowDefinition Height="0.113*"/>
                <RowDefinition Height="0.103*"/>
                <RowDefinition Height="0.337*"/>
                <RowDefinition Height="0.045*" />
                <RowDefinition Height="0*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="0.253*" />
                <ColumnDefinition Width="0.541*" />
                <ColumnDefinition Width="0.206*" />
                <ColumnDefinition Width="192" />
                <ColumnDefinition Width="190"/>
            </Grid.ColumnDefinitions>
        	<Label Content="Empresa" Margin="7.666,8.702,0,3.131" x:Name="label2" HorizontalAlignment="Left" Width="58" Grid.Column="2" Grid.Row="1" RenderTransformOrigin="0.511,-1.14" />
        	<Label Content="Fecha" HorizontalAlignment="Left" Margin="7.662,8,0,8.423" x:Name="label3" Grid.Column="2" />
        	<Label Content="Remito Ext." HorizontalAlignment="Right" Margin="0,9.01,6.27,2.823" x:Name="label5" Grid.Row="1" RenderTransformOrigin="0.551,0.004" />
        	<Label Content="Salida" Margin="40.053,14.022,6.27,5.511" x:Name="label6" Grid.Row="4" d:LayoutOverrides="Width" />
            <Label Content="Notas" HorizontalAlignment="Left" Margin="37.617,14.253,0,0" x:Name="label7" Grid.Row="6" Height="28" VerticalAlignment="Top" />
        	<TextBox x:Name="textBox7" TextWrapping="Wrap" AcceptsReturn="True" AcceptsTab="True" Text="{Binding Path=NuevoRemito.Observaciones, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" Grid.Row="6" Margin="8.283,12.82,7,0" Height="95" VerticalAlignment="Top" VerticalContentAlignment="Top" Grid.ColumnSpan="3" TabIndex="18" />
        	<Label Content="Llegada" HorizontalAlignment="Right" Margin="0,13.262,6.27,1.747" x:Name="label8" Grid.Row="5" RenderTransformOrigin="0.547,-0.694" />
        	<Label Content="N° Remito" HorizontalAlignment="Right" Margin="0,8.308,6.27,8.115" x:Name="label5_Copy" RenderTransformOrigin="0.551,0.004" />
        	<Label Content="M. Camión" HorizontalAlignment="Right" Margin="0,10.027,6.27,1.806" x:Name="label8_Copy" Grid.Row="2" />
        	<Label Content="M. Zorra" Margin="0,12.219,6.27,4.255" x:Name="label8_Copy1" Grid.Row="3" HorizontalAlignment="Right" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="8.283,8.608,0,7.94" x:Name="nroRemito" Width="168" Text="{Binding Path=NuevoRemito.Numero_Remito_Carga, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" Grid.Column="1" TabIndex="1" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="8.283,6.285,0,5.673" x:Name="nroRemitoExt" Width="168" Text="{Binding Path=NuevoRemito.Numero_Remito, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="1" Grid.Row="1" TabIndex="2" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="8.283,7.302,0,4.656" x:Name="matCamion" Width="168" Text="{Binding Path=NuevoRemito.Matricula_Camion, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="1" Grid.Row="2" TabIndex="3" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="8.283,11.344,0,5.205" x:Name="matZorra" Width="168" Text="{Binding Path=NuevoRemito.Matricula_Zorra, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="1" Grid.Row="3" TabIndex="4" />
            <TextBox Height="Auto" HorizontalAlignment="Left" Margin="17,6.285,0,5.673" x:Name="empresa" Width="168" Text="{Binding Path=NuevoRemito.Cliente, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="3" Grid.Row="1" TabIndex="8" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="17,10.327,0,1.631" x:Name="barco" Width="168" Text="{Binding Path=NuevoRemito.Barco, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="3" Grid.Row="2" TabIndex="9" />
        	<Label Content="Barco" Margin="7.666,9.719,0,2.114" x:Name="label2_Copy" HorizontalAlignment="Left" Width="58" Grid.Column="2" Grid.Row="2" RenderTransformOrigin="0.511,-1.14" />
        	<Label Content="Bodega" Margin="7.666,11.911,0,4.563" x:Name="label2_Copy1" HorizontalAlignment="Left" Width="58" Grid.Column="2" Grid.Row="3" RenderTransformOrigin="0.511,-1.14" />
        	<Label Content="Deposito" Margin="7.666,13.714,0,5.694" x:Name="label2_Copy2" HorizontalAlignment="Left" Width="58" Grid.Column="2" Grid.Row="4" RenderTransformOrigin="0.511,-1.14" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="17,11.344,0,5.205" x:Name="nroBodega" Width="168" Text="{Binding Path=NuevoRemito.Bodega, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="3" Grid.Row="3" TabIndex="10" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="17,14.322,0,5.211" x:Name="nDeposito" Width="168" Text="{Binding Path=NuevoRemito.Deposito, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="3" Grid.Row="4" TabIndex="11" />
        	<Label Content="ANP" HorizontalAlignment="Left" Margin="8,6.295,0,5.673" x:Name="label3_Copy" Grid.Column="4" Grid.Row="1" d:LayoutOverrides="HorizontalAlignment" RenderTransformOrigin="0,0.369" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="60.697,6.285,0,5.673" x:Name="pANP" Width="111.74" Text="{Binding Path=NuevoRemito.Peso_ANP, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="4" Grid.Row="1" TabIndex="12" />
        	<Label Content="Bruto 2" HorizontalAlignment="Left" Margin="8,12.219,0,4.204" x:Name="label3_Copy1" Grid.Column="4" Grid.Row="3" RenderTransformOrigin="0,0.369" d:LayoutOverrides="HorizontalAlignment" />
        	<Label Content="Tara 1" HorizontalAlignment="Left" Margin="8,14.322,0,4.936" x:Name="label3_Copy2" Grid.Column="4" Grid.Row="4" RenderTransformOrigin="0,0.369" d:LayoutOverrides="HorizontalAlignment" />
        	<Label Content="Neto" HorizontalAlignment="Left" Margin="8,44.842,0,65.136" x:Name="label3_Copy3" Grid.Column="4" Grid.Row="6" RenderTransformOrigin="0,0.369" d:LayoutOverrides="HorizontalAlignment" FontWeight="Bold" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="60.697,12.219,0,4.194" x:Name="pBruto2" Width="111.74" Text="{Binding Path=NuevoRemito.Peso_Bruto2, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="4" Grid.Row="3" TabIndex="14" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="60.697,13.554,0,5.694" x:Name="pTara1" Width="111.74" Text="{Binding Path=NuevoRemito.Tara, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="4" Grid.Row="4" TabIndex="15" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="53.437,44.832,0,65.136" x:Name="pNeto" Width="119" Text="{Binding Path=NuevoRemito.PesoNeto, Mode=OneWay}" Grid.Column="4" Grid.Row="6" IsReadOnly="True" TabIndex="17" />
        	<Label Content="Bruto 1" HorizontalAlignment="Left" Margin="8,8,0,3.968" x:Name="label3_Copy4" Grid.Column="4" Grid.Row="2" RenderTransformOrigin="0,0.369" d:LayoutOverrides="HorizontalAlignment" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="60.697,7.302,0,4.656" x:Name="pANP_Copy" Width="111.74" Text="{Binding Path=NuevoRemito.Peso_Bruto, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="4" Grid.Row="2" TabIndex="13" />
        	<Label Content="Tara 2" HorizontalAlignment="Left" Margin="8,7.208,0,8" x:Name="label3_Copy5" Grid.Column="4" Grid.Row="5" RenderTransformOrigin="0,0.369" d:LayoutOverrides="HorizontalAlignment" />
        	<TextBox Height="Auto" HorizontalAlignment="Left" Margin="60.697,13.262,0,1.936" x:Name="pTara2" Width="111.74" Text="{Binding Path=NuevoRemito.Tara2, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Grid.Column="4" Grid.Row="5" TabIndex="16" />
            <my:Dameer Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" Margin="8,14,0,0" Name="dameer1" VerticalAlignment="Top" Height="26" Width="168" Format="Custom" Value="{Binding Path=NuevoRemito.Hora_Salida, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Checked="True" ShowCheckBox="True"  SnapsToDevicePixels="False" TabIndex="5" />
            <my:Dameer Format="Custom" Height="26" HorizontalAlignment="Left" Margin="17,10,0,0" Name="dameer2" VerticalAlignment="Top" Width="168" Grid.Column="3" Value="{Binding Path=NuevoRemito.Fecha, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" IsEnabled="True" Focusable="False" Checked="True" ShowCheckBox="True" TabIndex="7" />
            <my:Dameer Format="Custom" Height="26" HorizontalAlignment="Left" Margin="8,7,0,0" Name="dameer3" VerticalAlignment="Top" Width="168" Grid.Column="1" Grid.Row="5" Value="{Binding Path=NuevoRemito.Hora_Llegada, UpdateSourceTrigger=PropertyChanged, Mode=TwoWay}" Checked="True" ShowCheckBox="True" TabIndex="6" />
        </Grid>
    </DockPanel>
</Fluent:RibbonWindow>
